import axios from "../utils/requst.js"

const base = {
    baseUrl: "http://localhost:9000",
    homehot1: "/api/home/hot1",
    homehot2: "/api/home/hot2",
    search: "/api/search",
}

const api = {
    // 获取首页热门 1
    getHomeHot1(params) {
        return axios.get(base.baseUrl + base.homehot1, {
            params
        })
    },
    getHomeHot2(params) {
        return axios.get(base.baseUrl + base.homehot2, {
            params
        })
    },

    getSearchContent(params) {
        return axios.get(base.baseUrl + base.search, {
            params
        })
    }
}

export default api;